<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\model\mongo;

class MongoOeAccountPicStatModel extends MongoStatModel
{
    protected $connection = 'mongodb';

    protected $name = 'oe_account_pic_stat';

    protected $pk = '_id';

    protected $autoWriteTimestamp = true;


    /**
     * 汇总必需字段.
     * @return string[]
     */
    public function getNeedField(): array
    {
        return [
            'client_id',
            'account_id',
            'adv_id',
            'pic_id',
            'signature',
            'cost',
            'version',
        ];
    }

    public function getSumField(): array
    {
        return [
            'account_id',
            'pic_id',
        ];
    }

}
